package com.jiazhong.mingxing.project.bookstore.front.service;

import com.jiazhong.mingxing.project.bookstore.commons.util.JsonResult;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Service;

@Service
public interface ShoppingCartService {

    JsonResult addCart(String bookId, HttpServletRequest request);

    JsonResult findCartByUserId(HttpServletRequest request);

    JsonResult findCartByUserId(String token);

    JsonResult updateCartNumber1(String bookId, HttpServletRequest request);

    JsonResult updateCartNumber2(String bookId, HttpServletRequest request);

    JsonResult updateCartNumber3(String bookId, HttpServletRequest request, int number);

    JsonResult removeCartByBookId(String bookId, HttpServletRequest request);

    JsonResult removeCartByBatch(String bookIds, HttpServletRequest request);
}
